<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('物资管理')" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-feed-depot" th:object="${depot}">
		<input name="inputId"  th:field="*{inputId}" type="hidden"  />
		<input name="inputCode"  th:field="*{inputCode}" type="hidden"  />

		<input name="milkman"  th:field="*{milkman}" type="hidden"  />
		<input name="disinfector"  th:field="*{disinfector}" type="hidden"  />


		<div class="form-group">
			<label class="col-sm-3 control-label ">数量</label>
			<div class="col-sm-8">
				<input class="form-control" type="number" step="0.1" required min="0.1" name="outputAmout" />
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label ">经手人</label>

			<div class="col-sm-8">
				<select class="form-control select2-multiple" id="outputUser" name="outputUser">
					<option th:each="user:${users}" th:text="${user.userName}" th:value="${user.userId}"></option>
				</select>
			</div>
			<!--<div class="col-sm-8">
				<input class="form-control" type="text" name="outputUser" />
			</div>-->
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label ">出库类型</label>
			<div class="col-sm-8">
				<select name="cforderType" class="form-control m-b" th:with="type=${@dict.getType('outputType')}">
					<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option>

				</select>

				<!--<input class="form-control" type="text" name="outputType" />-->
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label ">时间</label>
			<div class="col-sm-8">

				<input id="outputTime" data-format="yyyy-MM-dd HH:mm:ss"  name="outputTime" data-type="datetime" placeholder="请选择时间"  th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >

				<!--<input class="form-control" type="text" name="outputTime" />-->
			</div>
		</div>



		<div class="form-group">
			<label class="col-sm-3 control-label">备注</label>
			<div class="col-sm-8">
				<textarea class="form-control" type="text" name="remark" id="remark" rows="4" > </textarea>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-js" />
<script>
	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(ctx + "system/ncInputMilkStorage/depot", $('#form-feed-depot').serialize());
		}
	}
</script>
</body>

</html>
